-- GENERATED SPELL FOR [Searing Blade Cultist] --


function spell0_11322(pUnit, Event) --@Curse of Agony,n/a--
pUnit:FullCastSpellOnTarget(18266,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11322', 15000, 1)
end

function Sorts_11322(pUnit, Event)
local choix_sorts_11322 = math.random(0, 0)
if choix_sorts_11322 == 0 then
pUnit:RegisterEvent('spell0_11322', 1, 1)
end
end

function mob11322_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11322', math.random(1500, 3000), 1)
end

function mob11322_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11322_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11322_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11322, 1, 'mob11322_Action')
RegisterUnitEvent(11322, 2, 'mob11322_Leave')
RegisterUnitEvent(11322, 3, 'mob11322_Kill')
RegisterUnitEvent(11322, 4, 'mob11322_Die')
